package com.szxy.hotel.mapper;

import com.szxy.hotel.entity.Commodity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.ResultMap;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface CommodityMapper {
    @Select("select * from commodity where commodity_id = #{id}")
    @ResultMap("CommodityResultMap")
    Commodity selectConsume(@Param("id") String id);
}